<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>订货报表</title>
</head>
	<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/icon.css">
	<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.min.js"></script>
	<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="/wms/js/plugins/fancybox/jquery.fancybox.js?v=2.1.5"></script>
	<link rel="stylesheet" type="text/css" href="/wms/js/plugins/fancybox/jquery.fancybox.css?v=2.1.5" media="screen" />
	<script type="text/javascript" src="/wms/js/common/common.js"></script>
	<script type="text/javascript" src="/wms/js/common/orderChart.js"></script>
<body class="easyui-layout">
	<div data-options="region:'north',border:false" style="height: 12%">
		<form id="queryForm" method="post" action="/wms/chart_orderChart.action" style="margin-top: 13px">
			<s:date name="oqo.beginDate" format="yyyy-MM-dd" var="bd"/>
			<s:date name="oqo.endDate" format="yyyy-MM-dd" var="ed"/>
			业务时间&nbsp;
			<s:textfield name="oqo.beginDate" value="%{bd}"/>
			~
			<s:textfield name="oqo.endDate" value="%{ed}"/>&nbsp;
			货品关键字&nbsp;<s:textfield name="oqo.keyword"/>&nbsp;
			供应商&nbsp;<s:select name="oqo.supplierId" list="#suppliers" listKey="id" listValue="name" headerKey="-1" headerValue="全部"></s:select>&nbsp;
			所属品牌&nbsp;<s:select name="oqo.brandId" list="#brands" listKey="id" listValue="name" headerKey="-1" headerValue="全部"></s:select>&nbsp;
			分组&nbsp;<s:select name="oqo.orderGroupType" list="#groupTypes" listKey="name()" listValue="groupType"></s:select>&nbsp;
			<a class="easyui-linkbutton" data-options="text:'查询',iconCls:'icon-search'" onclick="query()"></a>
		</form>
	</div>
	<div data-options="region:'south',border: false" style="height: 88%">
		<table id="table_datagrid">
			<thead>
				<tr>
					<th data-options="field:'groupType',width:1,align:'center'">分组类型</th>
					<th data-options="field:'totalNumber',width:2,align:'center'">订货数量</th>
					<th data-options="field:'totalAmount',width:2,align:'center'">订货金额</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="#objs">
					<tr>
						<td><s:property value="groupType" /></td>
						<td><s:property value="totalNumber" /></td>
						<td><s:property value="totalAmount" /></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
		
		<div id="dg_tb" style="display: none">
			<a class="easyui-linkbutton" data-options="text:'线形图',plain:true,onClick:showChart" data-url="/wms/chart_orderChartByLine.action?"></a>
			<a class="easyui-linkbutton" data-options="text:'扇形图',plain:true,onClick:showChart" data-url="/wms/chart_orderChartByPie.action?"></a>
		</div>
	</div>
	<div id="chartDialog"></div>
</body>
</html>
